/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.akro;

import ie.omk.smpp.AlreadyBoundException;
import ie.omk.smpp.Connection;
import ie.omk.smpp.InvalidOperationException;
import ie.omk.smpp.message.*;
import ie.omk.smpp.net.TcpLink;
import ie.omk.smpp.version.VersionException;
import java.io.IOException;
import java.net.UnknownHostException;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.akro.smsc.SMSCReceiver;

/**
 *
 * @author Jose Carlos Palma
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        
        SMSCReceiver receiber = new SMSCReceiver("127.0.0.1", 3734);
        receiber.start();
        
        /*
            Connection cnx = new Connection("127.0.0.1", 3734);
            cnx.autoAckLink(true);
            BindResp receiver = cnx.bind(Connection.RECEIVER, "VMSC3", "VMSC31", null);
            System.out.println("Esperando mensaje...");
            DeliverSM dsm = (DeliverSM) cnx.readNextPacket();
            System.out.println(dsm.getMessageText());
            System.out.println("Enviando recibo...");
            DeliverSMResp dsmr = new DeliverSMResp(dsm);
            cnx.sendResponse(dsmr);
         
            cnx.unbind();
            
       */
        
        
    }
}
